import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ECmdCoreCommand
    
    export  class ECmdCoreCommand
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static convert(arg1: int): ECmdCoreCommand
        {
            return new ECmdCoreCommand(arg1);
        }

        public static __read(arg1: SerializeStream): ECmdCoreCommand
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 11072) 
            {
                throw new MarshalException();
            }
            return ECmdCoreCommand.convert(loc1);
        }

        public static /* const */_ECmdCoreChannelUpdate: int=11001;

        public static /* const */_ECmdCoreCellUpdate: int=11011;

        public static /* const */_ECmdCoreKillUser: int=11021;

        public static /* const */_ECmdCoreStopServer: int=11031;

        public static /* const */_ECmdCoreStartServer: int=11041;

        public static /* const */_ECmdCoreOnlineNum: int=11051;

        public static /* const */_ECmdCoreStopGateEntrance: int=11061;

        public static /* const */_ECmdCoreCrossChannelUpdate: int=11071;

        public /* var */__value: int;
    }
